<style>
    #root {
        box-sizing: border-box;
        background-color: #fff;
        border-radius: 4px;
        box-shadow: 0 0 5px rgba(0, 0, 0, .15);
        overflow: hidden;
        padding: 20px;
    }

    .userList[data=userList] {
        width: 180px;
        padding: 10px;
        box-sizing: border-box;
        border: 1px solid #E8E8E8;
        border-radius: 4px;
        display: inline-block;
        vertical-align: top;
    }

    .nameList[data=nameList] {
        width: 100%;
    }

    .nameList[data=nameList] span {
        display: block;
        text-align: center;
        line-height: 35px;
        font-size: 14px;
        cursor: pointer;
        transition: all .2s linear;
    }

    .nameList[data=nameList] span:hover {
        background-color: #e8e8e8;
    }

    .nameList[data=nameList] span:nth-of-type(odd) {
        background-color: #f2f3f4;
    }

    .userContent[data=userContent] {
        width: calc(100% - 190px);
        display: inline-block;
        vertical-align: top;
        padding: 0 10px;
    }

    .title[data=user-content-title] {
        width: 100%;
        height: 40px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .title[data=user-content-title] span {
        width: 3px;
        height: 20px;
        background-color: #55C8AB;
        border-radius: 2px;
        display: block;
    }

    .title[data=user-content-title] p {
        font-size: 14px;
        color: #333;
        box-sizing: border-box;
        padding-left: 10px;
        line-height: 40px;
        margin-block-start: 0;
        margin-block-end: 0;
    }

    .userInfo[data=user-info] {
        height: 40px;
        box-sizing: border-box;
        padding: 0 20px;
    }

    .animate-down {
        animation: down .3s;
    }

    @keyframes down {
        from {
            transform: translateY(-10px);
            opacity: 0;
        }

        to {}
    }

    .userInfo[data=user-info] .block {
        display: inline-block;
        margin-right: 30px;
        font-size: 14px;
        line-height: 40px;
    }

    .tabbar[data=user-content-tabbar] {
        width: 100%;
        height: 40px;
        background-color: #55C8AB;
        font-size: 0;
    }

    .tabbar[data=user-content-tabbar] span {
        width: 100px;
        height: 100%;
        display: inline-block;
        vertical-align: top;
        font-size: 14px;
        text-align: center;
        line-height: 40px;
        cursor: pointer;
        box-sizing: border-box;
        transition: all .3s linear;
    }

    .tabbar[data=user-content-tabbar] .active {
        background-color: #fff;
        border-top: 4px solid #197E65;
    }

    .content[data=user-scale] {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 20px;
        margin-top: 10px;
        border: 1px solid #e8e8e8;
        border-radius: 4px;
        animation: up .4s;
    }

    .content2[data=user-scale] {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 20px;
        animation: down .4s;
        font-size: 0;
        display: flex;
        justify-content: flex-start;
    }

    @keyframes up {
        from {
            transform: translateY(30px);
            opacity: 0;
        }

        to {}
    }

    .row[data=user-scale-row] {
        width: 100%;
        height: 40px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 10px;
    }

    .row[data=user-scale-row] .label {
        width: 80px;
        font-size: 14px;
        display: inline-block;
        line-height: 40px;
        color: #333;
        font-weight: normal;
        text-align: right;
    }

    .block[data=user-scale-block] {
        width: 320px;
    }

    .footer[data=user-scale-footer] {
        text-align: right;
        width: 100%;
        padding: 10px 0;
    }

    .table[data=scale-table] {
        width: calc(100% - 320px);
        min-height: 500px;
        box-sizing: border-box;
        border: 1px solid #e8e8e8;
    }

    .table[data=scale-table] div[data=table-tabbar] {
        width: 100%;
        height: 40px;
        display: flex;
    }

    .table[data=scale-table] div[data=table-tabbar] span {
        flex: 1;
        background-color: #55C8AB;
        color: #fff;
        text-align: center;
        line-height: 40px;
        font-size: 14px;
        transition: all .2s linear;
        cursor: pointer;
    }

    .table[data=scale-table] div[data=table-tabbar] .active {
        background-color: #fff;
        color: #333;
        border-top: 4px solid #197E65;
    }

    div[data=table-tabbar-input] {
        width: 100%;
        height: 40px;
        position: relative;
    }

    div[data=table-tabbar-input] i {
        position: absolute;
        left: 20px;
        top: 50%;
        color: #999;
        font-size: 20px;
        transform: translateY(-50%);
    }

    div[data=table-tabbar-input] input {
        width: 100%;
        height: 100%;
        padding: 0 20px;
        padding-left: 50px;
        box-sizing: border-box;
        font-size: 14px;
        border: none;
        border-top: 1px solid #e8e8e8;
    }

    div[data=table-tabbar-content] {
        width: 100%;
        height: calc(100% - 80px);
        overflow: auto;
    }

    .table[data=table-tabbar-input] input::placeholder {
        color: #999;
    }

    .table-btn[data=table-btn] {
        width: 80px;
        display: inline-block;
        vertical-align: top;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .table-already[data=table-already] {
        width: 300px;
        margin-left: 20px;
        min-height: 500px;
        box-sizing: border-box;
        padding-bottom: 40px;
        border: 1px solid #e8e8e8;
        position: relative;
    }

    .table-already[data=table-already] div[data=table-title] {
        width: 100%;
        height: 40px;
        background-color: #55C8AB;
        color: #fff;
        text-align: center;
        line-height: 40px;
        font-size: 14px;
    }

    .table-already[data=table-already] .table-content[data=table-content] {
        width: 100%;
        height: calc(100% - 40px);
        overflow: auto;
        box-sizing: border-box;
        padding: 0 10px;
    }

    .table-row[data=table-content] {
        width: 100%;
        font-size: 14px;
        line-height: 20px;
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px dashed #ccc;
    }

    .table-row[data=table-content] span {
        max-width: 240px;
    }

    .save[data=table-content] {
        width: 100%;
        height: 40px;
        line-height: 40px;
        text-align: center;
        color: #E29836;
        background-color: #FDF5E9;
        position: absolute;
        bottom: 0;
        left: 0;
        font-size: 14px;
        cursor: pointer;
        display: flex;
    }

    .save[data=table-content] span:hover {
        background-color: #E29836;
        color: #fff;
        transition: all .2s linear;
    }

    .save[data=table-content] span {
        flex: 1;
    }

    .newCompose {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .newCompose .newComposeRow {
        width: 100%;
        margin-bottom: 20px;
    }

    .newCompose .newComposeRow .key {
        display: inline-block;
        width: 100px;
        text-align: right;
        margin-right: 20px;
        vertical-align: top;
    }

    .newCompose .newComposeRow .value {
        display: inline-block;
        width: calc(100% - 130px);
        vertical-align: top;
    }

    .newCompose .newComposeRow .value .text {
        color: #333;
        font-size: 14px;
        line-height: 20px;
        padding: 10px 0;
        border-bottom: 1px dashed #ccc;
    }
</style>

<body>
    <div id="root">
        <div class="userList" data="userList">
            <el-input v-model="userName" placeholder="请填写名字查找" size="small" suffix-icon="el-icon-search" />
            <div class="nameList" data="nameList">
                <span v-for="(item, index) in nameList" @click="handleClick(item)" :key="index">{{ item.patientName
                    }}</span>
            </div>
        </div>
        <div class="userContent" data="userContent">
            <div class="title" data="user-content-title"><span></span>
                <p>用户信息</p>
            </div>
            <div class="userInfo" data="user-info">
                <div class="animate-down" v-if="currentUserInfo">
                    <span class="block">{{ currentUserInfo.patientName }}</span>
                    <span class="block">{{ currentUserInfo.gender === 'N' ? '男' : '女' }}</span>
                    <span class="block">{{ currentUserInfo.age }}</span>
                    <span class="block">出生日期：{{ currentUserInfo.birthday }}</span>
                    <span class="block">联系方式：{{ currentUserInfo.phoneNum }}</span>
                </div>
            </div>
            <div class="title" data="user-content-title"><span></span>
                <p>内容与设置</p>
            </div>
            <div class="tabbar" data="user-content-tabbar">
                <span :class="[{ active: type.type === 'record' }]" @click="type.type = 'record'">评测记录</span>
                <span :class="[{ active: type.type === 'setting' }]" @click="type.type = 'setting'">设置</span>
            </div>
            <div class="content" data="user-scale" v-if="type.type == 'record'">
                <div class="row" data="user-scale-row">
                    <div class="block" data="user-scale-block">
                        <span class="label">开始时间</span>
                        <el-date-picker v-model="search.start" type="date" size="small" placeholder="选择日期">
                        </el-date-picker>
                    </div>
                    <div class="block" data="user-scale-block">
                        <span class="label">结束时间</span>
                        <el-date-picker v-model="search.end" type="date" size="small" placeholder="选择日期">
                        </el-date-picker>
                    </div>
                </div>
                <div class="row" data="user-scale-row">
                    <div class="block" data="user-scale-block">
                        <span class="label">名称</span>
                        <el-input v-model="search.name" style="width: 220px;" size="small" placeholder="请填写量表名称" />
                    </div>
                    <div class="block" data="user-scale-block">
                        <span class="label">状态</span>
                        <el-select v-model="search.status" style="width: 220px;" placeholder="请选择" size="small">
                            <el-option value="1" label="未完成"></el-option>
                            <el-option value="2" label="已发送"></el-option>
                            <el-option value="3" label="已完成"></el-option>
                        </el-select>
                    </div>
                    <el-button style="margin-left: 20px;" type="primary" size="small" icon="el-icon-search"
                        @click="handleSearch">搜索</el-button>
                    <el-button style="margin-left: 20px;" type="warning" size="small" icon="el-icon-search"
                        @click="handleClear">清空</el-button>
                </div>
                <el-table :data="table.data" v-loading="table.loading" border size="small" style="width: 100%">
                    <el-table-column prop="No" align="center" label="序号" width="80">
                    </el-table-column>
                    <el-table-column prop="scaleName" align="center" label="名称">
                    </el-table-column>
                    <el-table-column prop="address" width="130" align="center" label="状态">
                        <template slot-scope="scope">
                            {{
                            getStatus(scope.row.status)
                            }}
                        </template>
                    </el-table-column>
                    <el-table-column prop="createTime" label="发送时间" align="center" width="200">
                    </el-table-column>
                    <el-table-column width="180" align="center" label="操作">
                        <template slot-scope="scope">
                            <el-button v-if="scope.row.status == 1" disabled size="mini" type="warning">待填写</el-button>
                            <el-button v-if="scope.row.status == 1" size="mini" type="danger"
                                @click="handelDelRow(scope.row.id)">删除</el-button>
                            <el-button v-else-if="scope.row.status == 3" @click="handleToScale(scope.row)" size="mini"
                                type="success">查看</el-button>
                        </template>
                    </el-table-column>
                </el-table>
                <div class="footer" data="user-scale-footer">
                    <el-pagination background @current-change="handleChange" layout="prev, pager, next, total"
                        :total="table.total">
                    </el-pagination>
                </div>
            </div>
            <div class="content2" data="user-scale" v-else>
                <div class="table" data="scale-table">
                    <div data="table-tabbar">
                        <span :class="[{ active: tabbarIndex === 0 }]" @click="tabbarIndex = 0">量表</span>
                        <span :class="[{ active: tabbarIndex === 1 }]" @click="tabbarIndex = 1">套餐</span>
                    </div>
                    <div data="table-tabbar-input" v-show="tabbarIndex === 0">
                        <input type="text" v-model="searchScale.value" placeholder="请输入量表名称进行搜索" />
                        <i class="el-icon-search"></i>
                    </div>
                    <div data="table-tabbar-input" v-show="tabbarIndex === 1">
                        <input type="text" v-model="searchCompose.value" placeholder="请输入组合名称进行搜索" />
                        <i class="el-icon-search"></i>
                    </div>
                    <div data="table-tabbar-content" id="table-tabbar-content" v-show="tabbarIndex == 0">
                        <el-table stripe size="mini" v-loading="scale.loading" ref="multipleTable"
                            :height="scale.height" @selection-change="handleSelectionChange"
                            :data="searchScale.data.length == 0 ? scale.data : searchScale.data" border>
                            <el-table-column type="selection" width="55">
                            </el-table-column>
                            <el-table-column align="center" prop="No" width="80" label="序号">
                            </el-table-column>
                            <el-table-column align="left" prop="title" label="量表名">
                            </el-table-column>
                            <el-table-column align="center" width="140" label="适用月龄">
                                <template slot-scope="scope">
                                    {{ getLimit(scope.row) }}
                                    {{ scope.row.displayAgemonth ? `(${ scope.row.displayAgemonth })` : '' }}
                                </template>
                            </el-table-column>
                            <el-table-column align="center" prop="addDate" width="100" label="创建时间">
                                <template slot-scope="scope">
                                    {{ scope.row.addDate.indexOf('T') ? scope.row.addDate.split('T')[0] : '' }}
                                </template>
                            </el-table-column>
                        </el-table>
                    </div>
                    <div data="table-tabbar-content" id="table-tabbar-content" v-show="tabbarIndex == 1">
                        <el-table stripe size="mini" ref="multipleTableCompose" :height="scale.height"
                            @selection-change="handleComposeSelectionChange"
                            :data="searchCompose.data.length == 0 ? compose.data : searchCompose.data" border>
                            <el-table-column type="selection" width="55">
                            </el-table-column>
                            <el-table-column align="center" prop="No" width="80" label="序号">
                            </el-table-column>
                            <el-table-column align="center" prop="scheduleName" label="组合名">
                            </el-table-column>
                            <el-table-column align="center" prop="createTime" width="200" label="创建时间">
                            </el-table-column>
                        </el-table>
                    </div>
                </div>
                <div class="table-already" data="table-already" :style="{ height: scale.height + 'px' }">
                    <div data="table-title">已选择</div>
                    <div class="table-content" data="table-content">
                        <div class="table-row" v-for="(item, index) in result.single" :key="index" data="table-content">
                            <span>{{ item.title }}</span>
                            <el-link type="primary" @click="handleDeleteFromSingle(item, index)">删除</el-link>
                        </div>
                        <template v-for="(group, key, index) in result.group">
                            <div class="table-row" v-for="(item, i) in group" :key="index" data="table-content">
                                <span>{{ item.title }}</span>
                                <el-link type="primary" @click="handleDeleteFromGroup(key, i)">删除</el-link>
                            </div>
                        </template>
                    </div>
                    <div class="save" data="table-content">
                        <span class="send" @click="handleSend">保存并发送</span>
                        <span class="save" @click="handleSave">存为新组合</span>
                    </div>
                </div>
            </div>
        </div>
        <el-drawer title="新建套餐组合" :visible.sync="drawer" direction="rtl">
            <div class="newCompose">
                <div class="newComposeRow">
                    <span class="key">组合编号</span>
                    <span class="value">
                        <el-input v-model="newCompose.tag" placeholder="请填写组合编号" size="small" />
                    </span>
                </div>
                <div class="newComposeRow">
                    <span class="key">组合名称</span>
                    <span class="value">
                        <el-input v-model="newCompose.name" placeholder="请填写组合名称" size="small" />
                    </span>
                </div>
                <div class="newComposeRow">
                    <span class="key">组合说明</span>
                    <span class="value">
                        <el-input v-model="newCompose.tip" type="textarea" :rows="5" placeholder="请填写组合说明"
                            size="small" />
                    </span>
                </div>
                <div class="newComposeRow">
                    <span class="key">量表明细</span>
                    <span class="value">
                        <div class="text" v-for="(item, index) in newCompose.list" :key="index">{{ item.title }}</div>
                    </span>
                </div>
                <div class="newComposeRow">
                    <span class="key"></span>
                    <span class="value">
                        <el-button type="primary" @click="handleCreateNewCompose" size="small">确认新建</el-button>
                    </span>
                </div>
            </div>
        </el-drawer>
    </div>
</body>
<script>
    require(['bbcare'], function ($bb) {
        var FollowURL = $bb.baseUrl("followup")
        var URL = $bb.baseUrl("scaleHost")
        if (location.href.indexOf('192.168.3.141') > -1) {
            URL = '/nirn/'
        }

        var vm = new Vue({
            el: '#root',
            data: function () {
                return {
                    drawer: false,
                    newCompose: {
                        list: [],
                        tag: '',
                        tip: '',
                        name: ''
                    },
                    userName: '',
                    nameList: [],
                    allNames: [],
                    currentUserInfo: null,
                    type: null,
                    search: {
                        name: '',
                        status: null,
                        start: null,
                        end: null
                    },
                    tabbarIndex: 0,
                    table: {
                        data: [],
                        size: 10,
                        loading: false,
                        page: 1,
                        total: 0
                    },
                    scale: {
                        data: [],
                        loading: false,
                        height: 0,
                        selected: []
                    },
                    searchScale: {
                        data: [],
                        value: ''
                    },
                    compose: {
                        data: [],
                        selected: []
                    },
                    searchCompose: {
                        data: [],
                        value: ''
                    },
                    result: {
                        single: [],
                        group: {},
                        groupSource: []
                    },
                    currentUserPatientId: null,
                    oldScaleList: []
                }
            },
            created: function () {
                this.scale.height = document.getElementById('table-tabbar-content').clientHeight
                this.getContentParams()
                this.getAllScale()
                this.getCompose()
            },
            watch: {
                'searchScale.value' (val) {
                    var result = [], indexs = []
                    this.scale.data.forEach(function (item, index) {
                        if (item.title.indexOf(val) > -1) {
                            result.push(item)
                            indexs.push(index)
                        }
                    })

                    if (val == '') {
                        this.scale.data.sort((a, b) => Number(a.No) - Number(b.No))
                    } else {
                        result.forEach((item, index) => {
                            this.scale.data.splice(indexs[index], 1)
                            this.scale.data.unshift(item)
                        })
                    }
                },
                'searchCompose.value' (val) {
                    var result = [], indexs = []
                    this.compose.data.forEach(function (item, index) {
                        if (item.scheduleName.indexOf(val) > -1) {
                            result.push(item)
                            indexs.push(index)
                        }
                    })

                    if (val == '') {
                        this.compose.data.sort((a, b) => Number(a.No) - Number(b.No))
                    } else {
                        result.forEach((item, index) => {
                            this.compose.data.splice(indexs[index], 1)
                            this.compose.data.unshift(item)
                        })
                    }

                },
                'type.type' (val) {
                    val === 'record' && this.getTableData()
                },
                'userName' (val) {
                    var arr = []
                    this.allNames.forEach(function (item) {
                        if (item.patientName.indexOf(val) > -1) {
                            arr.push(item)
                        }
                    })
                    this.nameList = arr
                }
            },
            methods: {
                handleToScale: function (row) {
                    var scaleUuid = this.scale.data.filter(function (d) {
                        return d.id == row.paperId
                    })
                    if (scaleUuid.length == 0) return this.$message.error('未找到量表uuid，请联系管理员')
                    row.scaleUuid = scaleUuid[0].scaleUuid
                    var name = 'null'
                    if (scaleUuid[0].recordPath) name = scaleUuid[0].recordPath.split('/')[2]
                    row.userId = this.currentUserInfo.patientId
                    $bb.openPage('userScaleList', { row: row, name: name })
                },
                /**
                 * 搜索
                 */
                handleSearch: function () {
                    this.table.page = 1
                    if (this.search.start && this.search.end) {
                        var start = new Date(this.search.start).getTime() / 1000
                        var end = new Date(this.search.end).getTime() / 1000
                        if (start > end) return this.$message.error('结束时间必须大于开始时间')
                    }
                    this.getTableData()
                },
                getLimit: function (row) {
                    if (row.adaptMonthEnd > 9998 && row.adaptMonthStart == 0) {
                        return '无限制'
                    } else if (row.adaptMonthEnd == null && row.adaptMonthStart == null) {
                        return '无限制'
                    } else if (row.adaptMonthStart && row.adaptMonthEnd == 9999) {
                        return `${row.adaptMonthStart}月以上`
                    } else {
                        return `${row.adaptMonthStart}月龄 至 ${row.adaptMonthEnd}月龄`
                    }
                },
                /**
                 * 清除
                 */
                handleClear: function () {
                    this.search = {
                        name: '',
                        status: null,
                        start: null,
                        end: null
                    }
                    this.getTableData()
                },
                /**
                 * 保存并发送给患者
                 */
                handleSend: function () {
                    var scales = this.getSelectedScale()
                    if (scales.length === 0) return this.$message.error('请勾选需要推送的量表')
                    this.$confirm('是否确认发送？', '提示', {
                        confirmButtonText: '确认发送',
                        cancelButtonText: '取消发送',
                    }).then(() => {
                        var paperIds = [], that = this
                        scales.forEach(function (scale) {
                            paperIds.push(scale.id)
                        })
                        paperIds = paperIds.join(',')

                        // 获取量表对应的 patientID
                        var param = {
                            birthday: this.currentUserInfo.birthday,
                            gender: this.currentUserInfo.gender == 'N' ? 1 : 2,
                            patientId: this.currentUserInfo.patientId,
                            patientName: this.currentUserInfo.patientName,
                            phoneNum: this.currentUserInfo.phoneNum,
                            accountId: this.currentUserInfo.accountId,
                            queueId: this.currentUserInfo.followQueueId
                        }

                        this.getPatientId(param, function (res) {
                            var param = {
                                paperIds: paperIds,
                                patientId: String(res.id),
                                scheduleId: null
                            }
                            $bb.ajax({
                                url: URL + 'web/scale/scaleScheduleBatch/save',
                                data: JSON.stringify(param),
                                success: function (res) {
                                    if (res.code == 500) location.href = location.href
                                    if (res.code == 0) {
                                        that.$message.success('保存成功')
                                        that.result.single.forEach(function (item) {
                                            that.$refs.multipleTable.toggleRowSelection(item, false)
                                        })
                                        that.result.single = []
                                        that.result.groupSource.forEach(function (item) {
                                            that.$refs.multipleTableCompose.toggleRowSelection(item, false)
                                        })
                                        that.result.groupSource = []
                                        that.result.group = {}
                                    }
                                }
                            })
                        })
                    })
                },
                /**
                 * 获取 量表中的对应患者 ID
                 */
                getPatientId: function (param, callback) {
                    $bb.ajax({
                        url: URL + 'web/scale/patient',
                        data: JSON.stringify(param),
                        success: function (res) {
                            if (res.code == 500) location.href = location.href
                            callback(res)
                        }
                    })
                },
                getStatus: function (status) {
                    switch (status) {
                        case 1:
                            return '未完成'
                        case 2:
                            return '已发送'
                        case 3:
                            return '已完成'
                    }
                },
                /**
                 * 获取名字列表
                 */
                getList: function () {
                    var param = {
                        birthday: this.currentUserInfo.birthday,
                        gender: this.currentUserInfo.gender == 'N' ? 1 : 2,
                        patientId: this.currentUserInfo.patientId,
                        patientName: this.currentUserInfo.patientName,
                        phoneNum: this.currentUserInfo.phoneNum,
                        accountId: this.currentUserInfo.accountId,
                        queueId: this.currentUserInfo.followQueueId
                    }, that = this
                    that.table.loading = true
                    this.getPatientId(param, function (res) {
                        that.currentUserPatientId = res.id
                        that.getTableData()
                    })
                },
                /**
                 * 获取量表名
                 */
                getScaleName: function (id) {
                    var result = ''
                    this.scale.data.forEach(function (item) {
                        if (item.id == id) result = item.title
                    })
                    return result
                },
                /**
                 * 获取表格数据
                 */
                getTableData: function () {
                    var param = {
                        page: this.table.page,
                        limit: this.table.size,
                        patientId: String(this.currentUserPatientId),
                        scaleName: this.search.name == '' ? null : this.search.name,
                        startTime: this.getFormatDate(this.search.start, 'start'),
                        endTime: this.getFormatDate(this.search.end, 'end'),
                        status: this.search.status
                    }, that = this
                    that.table.loading = true
                    if (param.patientId == 'null') return
                    $bb.ajax({
                        url: URL + 'web/scale/schedulePlan/list',
                        data: JSON.stringify(param),
                        success: function (res) {
                            that.table.loading = false
                            if (res.code == 500) location.href = location.href
                            res.page.records.forEach(function (item, index) {
                                item.No = (that.table.page - 1) * that.table.size + index + 1
                            })
                            that.table.total = res.page.total
                            that.table.data = res.page.records
                            that.table.loading = false
                        }
                    })
                },
                /**
                 * 获取时间
                 */
                getFormatDate: function (date, type) {
                    if (!date) return null
                    function addZore (num) { return num < 10 ? '0' + num : num }
                    var d = new Date(date),
                        year = d.getFullYear(),
                        month = d.getMonth() + 1,
                        day = d.getDate(),
                        time = (type === 'start' ? ' 00:00:00' : ' 23:59:59')
                    return year + '-' + addZore(month) + '-' + addZore(day) + time
                },
                /**
                 * 保存为新量表
                 */
                handleSave: function () {
                    var scales = this.getSelectedScale()
                    if (scales.length === 0) return this.$message.error('请勾选需要推送的量表')
                    this.drawer = true
                    this.newCompose.list = scales
                },
                handleCreateNewCompose: function () {
                    if (this.newCompose.name == '') return this.$message.warning('请填写组合名称')
                    var ids = [], that = this
                    this.newCompose.list.forEach(function (item) {
                        ids.push(item.id)
                    })
                    var param = {
                        scheduleName: this.newCompose.name,
                        tag: this.newCompose.tag, name,
                        tip: this.newCompose.tip,
                        paperIds: ids.join(',')
                    }
                    $bb.ajax({
                        url: URL + 'web/scale/schedule/save',
                        data: JSON.stringify(param),
                        success: function (res) {
                            if (res.code == 500) location.href = location.href
                            if (res.code !== 0) return that.$message.error('提交失败,请联系管理员')
                            that.$message.success('保存成功！')
                            that.drawer = false
                            that.newCompose = {
                                list: [],
                                tag: '',
                                tip: '',
                                name: ''
                            }
                            that.getCompose()
                        }
                    })
                },
                getSelectedScale: function () {
                    var result = [], that = this
                    Object.keys(this.result.group).forEach(function (key) {
                        result = result.concat(that.result.group[key])
                    })
                    result = result.concat(this.result.single)
                    return result
                },
                /**
                 * 改变页面下标
                 */
                handleChange: function (val) {
                    this.table.page = val
                    this.getTableData()
                },
                handleClick: function (item) {
                    this.getCurrentUser(item.patientId)
                },
                handleSelectionChange: function (list) {
                    this.scale.selected = list
                    this.result.single = list
                    var that = this
                    // 去重
                    Object.keys(this.result.group).forEach(function (key) {
                        that.result.group[key].forEach(function (item) {
                            that.result.single.forEach(function (single, index) {
                                if (item.title === single.title) {
                                    that.$confirm('当前添加的量表已经存在', '提示', {
                                        type: 'warning',
                                        showCancelButton: false
                                    })
                                        .then(function () {
                                            that.result.single.splice(index, 1)
                                            that.$refs.multipleTable.toggleRowSelection(single, false)
                                        })
                                }
                            })
                        })
                    })
                },
                handleComposeSelectionChange: function (list) {
                    this.result.groupSource = list
                    var that = this
                    this.result.group = {}
                    list.forEach(function (item, index) {
                        that.result.group['item' + index] = that.scale.data.filter(function (scale) {
                            if (item.paperIds.split(',').indexOf(String(scale.id)) > -1) {
                                return scale
                            }
                        })
                    })
                    // 去重
                    var s = []
                    Object.keys(this.result.group).forEach(function (key) {
                        that.result.group[key].forEach(function (item) {
                            that.result.single.forEach(function (single, index) {
                                if (item.title === single.title) {
                                    s.push({
                                        data: single,
                                        index: index
                                    })
                                }
                            })
                        })
                    })
                    if (s.length > 0) {
                        that.$confirm('当前添加的组合中已有量表存在，程序自动将去掉重复量表', '提示', {
                            type: 'warning',
                            showCancelButton: false
                        })
                            .then(function () {
                                s.forEach(function (item) {
                                    that.result.single.splice(item.index, 1)
                                    that.$refs.multipleTable.toggleRowSelection(item.data, false)
                                })
                            })
                    }

                },
                handleDeleteFromSingle: function (item, index) {
                    this.scale.selected.splice(index, 1)
                    this.$refs.multipleTable.toggleRowSelection(item, false)
                },
                handleDeleteFromGroup: function (key, index) {
                    this.result.group[key].splice(index, 1)
                    this.$forceUpdate()
                    if (this.result.group[key].length === 0) {
                        delete this.result.group[key]
                        var no = Number(key.replace('item', ''))
                        var row = this.result.groupSource[no]
                        this.$refs.multipleTableCompose.toggleRowSelection(row, false)
                    }
                },
                getCompose: function () {
                    var that = this
                    $bb.ajax({
                        url: URL + 'web/scale/schedule/list',
                        data: JSON.stringify({
                            page: 1,
                            limit: 9999,
                        }),
                        success: function (res) {
                            if (res.code == 500) location.href = location.href
                            res.page.records.forEach(function (item, index) {
                                item.No = index + 1
                            })
                            that.compose.data = res.page.records
                        }
                    })
                },
                /**
                 * 获取地址栏信息
                 */
                getContentParams: function () {
                    var param = sessionStorage.getItem('composeUser') ?
                        JSON.parse(sessionStorage.getItem('composeUser')) : null
                    if (!param) return
                    this.type = param
                    this.getUserList()
                    this.getCurrentUser(param.data.patientId)
                },
                /**
                 * 获取当前用户信息
                 */
                getCurrentUser: function (patientId) {

                    var timer = undefined, that = this
                    this.currentUserInfo = null
                    this.getUserList(name, function (res) {
                        timer = setInterval(function () {
                            if (that.nameList.length !== 0) {
                                var result
                                that.nameList.forEach(function (row, index) {
                                    if (row.patientId === patientId) {
                                        that.currentUserInfo = row
                                        result = {
                                            row: row, index: index
                                        }
                                    }
                                })
                                if (result) {
                                    that.nameList.splice(result.index, 1)
                                    that.nameList.unshift(result.row)
                                } else {
                                    that.nameList.pop()
                                    that.nameList.unshift(res.rows[0])
                                }
                                that.getList()
                                clearInterval(timer)
                            }
                        }, 100)
                    })
                },
                //删除测试记录
                handelDelRow: function (id) {
                    let that = this
                    this.$confirm('此操作将永久删除该记录, 是否继续?', '提示', {
                        confirmButtonText: '确定',
                        cancelButtonText: '取消',
                        type: 'warning',
                    })
                        .then(() => {
                            $bb.ajax({
                                url: URL + 'web/scale/schedulePlan/delete',
                                data: JSON.stringify([id]),
                                success: function (res) {
                                    console.log('res', res)
                                    if (res.code == 0) {
                                        that.$message({
                                            type: 'success',
                                            message: '删除成功!',
                                        })
                                        that.getTableData()
                                    }
                                },
                            })
                        })
                        .catch(() => {
                            this.$message({
                                type: 'info',
                                message: '已取消删除',
                            })
                        })
                },
                /**
                 * 获取用户列表
                 */
                getUserList: function (name, callback) {
                    var that = this
                    $bb.ajax({
                        url: FollowURL + 'followup/service/patient/patientListDataCenterQuery',
                        data: JSON.stringify({
                            data: {
                                args: JSON.stringify({
                                    draw: 1,
                                    columns: [],
                                    order: [],
                                    start: 0,
                                    length: 999999
                                }),
                                patientName: name ? name : this.userName,
                                phoneNum: ''
                            }
                        }),
                        success: function (res) {
                            if (res.code == 500) location.href = location.href
                            if (callback) {
                                callback(res)
                            } else {
                                that.nameList = res.rows
                                that.allNames = JSON.parse(JSON.stringify(res.rows))
                            }
                        }
                    })
                },
                /**
                 * 获取量表列表
                 */
                getAllScale: function () {
                    this.scale.loading = true
                    var that = this
                    $bb.get(
                        URL + 'web/scale/getUsableScaleList', {},
                        function (res) {
                            if (res.code == 500) location.href = location.href
                            var result = []
                            // 获取首字是英文的量表并排序
                            var En = res.scaleList.filter(function (item) {
                                return /^[A-Za-z]+/.test(item.title.charAt(0))
                            })
                            En = En.sort(function (a, b) {
                                return a.title.charCodeAt(0) - b.title.charCodeAt(0)
                            })
                            // 获取中文的首字母拼音
                            var Ch = res.scaleList.filter(function (item) {
                                return En.indexOf(item) == -1
                            })
                            Ch.map(function (item) {
                                return item.first = that.getFirstLetter(item.title).charCodeAt(0)
                            })
                            Ch = Ch.sort(function (a, b) {
                                return a.first - b.first
                            })
                            result = En.concat(Ch)

                            result.forEach(function (item, index) {
                                item.No = index + 1
                            })
                            that.scale.data = result
                            that.oldScaleList = JSON.parse(JSON.stringify(result))
                            that.scale.loading = false
                        }
                    )
                },
                getFirstLetter: function (w) {
                    var strChineseFirstPY = "YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZ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QQWRSLALHMJTQJSMXQBJJZJXZYZKXBYQXBJXSHZTSFJLXMXZXFGHKZSZGGYLCLSARJYHSLLLMZXELGLXYDJYTLFBHBPNLYZFBBHPTGJKWETZHKJJXZXXGLLJLSTGSHJJYQLQZFKCGNNDJSSZFDBCTWWSEQFHQJBSAQTGYPQLBXBMMYWXGSLZHGLZGQYFLZBYFZJFRYSFMBYZHQGFWZSYFYJJPHZBYYZFFWODGRLMFTWLBZGYCQXCDJYGZYYYYTYTYDWEGAZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY"

                    var oMultiDiff = { "19969": "DZ", "19975": "WM", "19988": "QJ", "20048": "YL", "20056": "SC", "20060": "NM", "20094": "QG", "20127": "QJ", "20167": "QC", "20193": "YG", "20250": "KH", "20256": "ZC", "20282": "SC", "20285": "QJG", "20291": "TD", "20314": "YD", "20340": "NE", "20375": "TD", "20389": "YJ", "20391": "CZ", "20415": "PB", "20446": "YS", "20447": "SQ", "20504": "TC", "20608": "KG", "20854": "QJ", "20857": "ZC", "20911": "PF", "20985": "AW", "21032": "PB", "21048": "XQ", "21049": "SC", "21089": "YS", "21119": "JC", "21242": "SB", "21273": "SC", "21305": "YP", "21306": "QO", "21330": "ZC", "21333": "SDC", "21345": "QK", "21378": "CA", "21397": "SC", "21414": "XS", "21442": "SC", "21477": "JG", "21480": "TD", "21484": "ZS", "21494": "YX", "21505": "YX", "21512": "HG", "21523": "XH", "21537": "PB", "21542": "PF", "21549": "KH", "21571": "E", "21574": "DA", "21588": "TD", "21589": "O", "21618": "ZC", "21621": "KHA", "21632": "ZJ", "21654": "KG", "21679": "LKG", "21683": "KH", "21710": "A", "21719": "YH", "21734": "WOE", "21769": "A", "21780": "WN", "21804": "XH", "21834": "A", "21899": "ZD", "21903": "RN", "21908": "WO", "21939": "ZC", "21956": "SA", "21964": "YA", "21970": "TD", "22003": "A", "22031": "JG", "22040": "XS", "22060": "ZC", "22066": "ZC", "22079": "MH", "22129": "XJ", "22179": "XA", "22237": "NJ", "22244": "TD", "22280": "JQ", "22300": "YH", "22313": "XW", "22331": "YQ", "22343": "YJ", "22351": "PH", "22395": "DC", "22412": "TD", "22484": "PB", "22500": "PB", "22534": "ZD", "22549": "DH", "22561": "PB", "22612": "TD", "22771": "KQ", "22831": "HB", "22841": "JG", "22855": "QJ", "22865": "XQ", "23013": "ML", "23081": "WM", "23487": "SX", "23558": "QJ", "23561": "YW", "23586": "YW", "23614": "YW", "23615": "SN", "23631": "PB", "23646": "ZS", "23663": "ZT", "23673": "YG", "23762": "TD", "23769": "ZS", "23780": "QJ", "23884": "QK", "24055": "XH", "24113": "DC", "24162": "ZC", "24191": "GA", "24273": "QJ", "24324": "NL", "24377": "TD", "24378": "QJ", "24439": "PF", "24554": "ZS", "24683": "TD", "24694": "WE", "24733": "LK", "24925": "TN", "25094": "ZG", "25100": "XQ", "25103": "XH", "25153": "PB", "25170": "PB", "25179": "KG", "25203": "PB", "25240": "ZS", "25282": "FB", "25303": "NA", "25324": "KG", "25341": "ZY", "25373": "WZ", "25375": "XJ", "25384": "A", "25457": "A", "25528": "SD", "25530": "SC", "25552": "TD", "25774": "ZC", "25874": "ZC", "26044": "YW", "26080": "WM", "26292": "PB", "26333": "PB", "26355": "ZY", "26366": "CZ", "26397": "ZC", "26399": "QJ", "26415": "ZS", "26451": "SB", "26526": "ZC", "26552": "JG", "26561": "TD", "26588": "JG", "26597": "CZ", "26629": "ZS", "26638": "YL", "26646": "XQ", "26653": "KG", "26657": "XJ", "26727": "HG", "26894": "ZC", "26937": "ZS", "26946": "ZC", "26999": "KJ", "27099": "KJ", "27449": "YQ", "27481": "XS", "27542": "ZS", "27663": "ZS", "27748": "TS", "27784": "SC", "27788": "ZD", "27795": "TD", "27812": "O", "27850": "PB", "27852": "MB", "27895": "SL", "27898": "PL", "27973": "QJ", "27981": "KH", "27986": "HX", "27994": "XJ", "28044": "YC", "28065": "WG", "28177": "SM", "28267": "QJ", "28291": "KH", "28337": "ZQ", "28463": "TL", "28548": "DC", "28601": "TD", "28689": "PB", "28805": "JG", "28820": "QG", "28846": "PB", "28952": "TD", "28975": "ZC", "29100": "A", "29325": "QJ", "29575": "SL", "29602": "FB", "30010": "TD", "30044": "CX", "30058": "PF", "30091": "YSP", "30111": "YN", "30229": "XJ", "30427": "SC", "30465": "SX", "30631": "YQ", "30655": "QJ", "30684": "QJG", "30707": "SD", "30729": "XH", "30796": "LG", "30917": "PB", "31074": "NM", "31085": "JZ", "31109": "SC", "31181": "ZC", "31192": "MLB", "31293": "JQ", "31400": "YX", "31584": "YJ", "31896": "ZN", "31909": "ZY", "31995": "XJ", "32321": "PF", "32327": "ZY", "32418": "HG", "32420": "XQ", "32421": "HG", "32438": "LG", "32473": "GJ", "32488": "TD", "32521": "QJ", "32527": "PB", "32562": "ZSQ", "32564": "JZ", "32735": "ZD", "32793": "PB", "33071": "PF", "33098": "XL", "33100": "YA", "33152": "PB", "33261": "CX", "33324": "BP", "33333": "TD", "33406": "YA", "33426": "WM", "33432": "PB", "33445": "JG", "33486": "ZN", "33493": "TS", "33507": "QJ", "33540": "QJ", "33544": "ZC", "33564": "XQ", "33617": "YT", "33632": "QJ", "33636": "XH", "33637": "YX", "33694": "WG", "33705": "PF", "33728": "YW", "33882": "SR", "34067": "WM", "34074": "YW", "34121": "QJ", "34255": "ZC", "34259": "XL", "34425": "JH", "34430": "XH", "34485": "KH", "34503": "YS", "34532": "HG", "34552": "XS", "34558": "YE", "34593": "ZL", "34660": "YQ", "34892": "XH", "34928": "SC", "34999": "QJ", "35048": "PB", "35059": "SC", "35098": "ZC", "35203": "TQ", "35265": "JX", "35299": "JX", "35782": "SZ", "35828": "YS", "35830": "E", "35843": "TD", "35895": "YG", "35977": "MH", "36158": "JG", "36228": "QJ", "36426": "XQ", "36466": "DC", "36710": "JC", "36711": "ZYG", "36767": "PB", "36866": "SK", "36951": "YW", "37034": "YX", "37063": "XH", "37218": "ZC", "37325": "ZC", "38063": "PB", "38079": "TD", "38085": "QY", "38107": "DC", "38116": "TD", "38123": "YD", "38224": "HG", "38241": "XTC", "38271": "ZC", "38415": "YE", "38426": "KH", "38461": "YD", "38463": "AE", "38466": "PB", "38477": "XJ", "38518": "YT", "38551": "WK", "38585": "ZC", "38704": "XS", "38739": "LJ", "38761": "GJ", "38808": "SQ", "39048": "JG", "39049": "XJ", "39052": "HG", "39076": "CZ", "39271": "XT", "39534": "TD", "39552": "TD", "39584": "PB", "39647": "SB", "39730": "LG", "39748": "TPB", "40109": "ZQ", "40479": "ND", "40516": "HG", "40536": "HG", "40583": "QJ", "40765": "YQ", "40784": "QJ", "40840": "YK", "40863": "QJG" }

                    function checkCh (ch) {
                        var uni = ch.charCodeAt(0)
                        if (uni > 40869 || uni < 19968) return ch
                        return (oMultiDiff[uni] ? oMultiDiff[uni] : (strChineseFirstPY.charAt(uni - 19968)))
                    }

                    function getChineseHadLetter (str) {
                        if (typeof str !== "string") return
                        var ch = str.charAt(0)
                        var s = checkCh(ch)
                        return s.toLowerCase()
                    }

                    return getChineseHadLetter(w)

                }
            }
        })

    })
</script>